package cn.pet.service.manage.entity.dto;

import cn.pet.service.manage.entity.PetOrderDetail;
import cn.pet.service.manage.entity.api.Page;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zwr
 * @version 1.0
 * @description TODO
 * @date 2023/2/12 18:14
 */
@Data
public class OrderDTO extends Page {
    /**
     * 订单ID
     */
    private String id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 订单总价
     */
    private Double money;

    /**
     * 订单状态(0:待支付，1：已支付，待发货，2：已发货，待收货，3：已收货，待评论，4：订单完成)
     */
    private Integer status;

    /**
     * 订单时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 收获地址ID
     */
    private Integer addressId;

    /**
     * 备注
     */
    private String remarks;

    private List<PetOrderDetail> orderDetails;
}
